<?php 
	//输出头 
	header('Content-type=text/html;charset="utf-8"');
	defined('DEBUG') or define('DEBUG' , false);

	if(DEBUG){
		ini_set('error_report', 0);
		error_reporting(E_ALL & ~E_DEPRECATED);
	}

	//入口脚本文件 
	defined('APP_START_FILE') or define('APP_START_FILE' , '../index.php');

	defined('__EXT__') or define('__EXT__' , '.php');

	//网站目录
	defined('ROOT_PATH') or define('ROOT_PATH' , realpath(dirname(__FILE__) . '/../'));


	//define lib path
	defined('LIB_PATH') or define('LIB_PATH' , ROOT_PATH . '/lib/') ; 
    
    //define library path 
    defined('LIBRARY_PATH') or define('LIBRARY_PATH' , LIB_PATH . 'library/');


    global $_config ;
    //加载配置文件 
    $_config = require_once LIB_PATH . 'config.php' ; 

    //加载公共函数 
    require_once LIB_PATH . 'functions.php' ; 

    //autoload class 
    require_once LIB_PATH . 'autoload.php' ; 
    require_once LIB_PATH . 'route' . __EXT__ ;


    //解析路由
    Route::dispath();




